﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace BDSim
{
    /// <summary>
    /// 计算气象参数动态库封装
    /// </summary>
    class ClimateParaDLL
    {
        /// <summary>
        /// 获取气象参数（同一纬度高度上的值一致，与经度无关）
        /// </summary>
        /// <param name="paraIn">UTC时间、纬度和高度</param>
        /// <param name="paraOut">气压、温度、湿度</param>
        /// <returns>执行成功返回true，否则返回false</returns>
        [DllImport("ClimateParaDLL.dll", EntryPoint = "CP_GetClimatePara", CallingConvention = CallingConvention.Cdecl)]
        public static extern bool CP_GetClimatePara(ClimateParaInput paraIn, out MeteorologicalsParam paraOut);
    }
}
